<script lang='ts' setup>
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import en from 'element-plus/dist/locale/en.mjs'

const language = ref('zh-cn')
const locale = computed(() => (language.value === 'zh-cn' ? zhCn : en))
const message = reactive({
  max: 1,
  offset: 100
})

</script>

<template >
  <el-config-provider :message="message" :locale="locale">
    <RouterView />
  </el-config-provider>
</template>

<style scoped lang='less'>
* {
  user-select: none;
}
</style>
